package com.nt.thah.dao;

import com.nt.thah.entity.ScoreDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 积分详情
 * @author: ls
 * @Date: 2023-08-01 15:16:50
 */
@Mapper
public interface ScoreDetailDao {

    int save(ScoreDetail sd);

    Integer getDayScore(@Param("userId")Integer userId, @Param("time")String time);

    List<ScoreDetail> getScoreByUserId(Integer userId);

    Integer checkIsExist(@Param("userId") Integer userId, @Param("type") Integer type, @Param("time") String time);

    List<ScoreDetail> getRankList(String time);
}
